<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.7.14/dist/vue.js"></script>
</head>
<style>
    .box{
        width: 200px;
        height: 200px;
        border: 2px solid black;
        font-size: 20px;
    }
    .pink{
        background-color: pink;
    }
    .big{
        width: 300px;
        height: 300px;
    }
</style>
<body>
    <div id="app">
     <div class="box" :class="{pink:true,big:true}">
      黑马程序员
     </div>
     <div class="box" :class="['pink','big']">
        黑马程序员
       </div>
    </div>
</body>
<script>
   const app=new Vue({
    el:'#app',
    data:{
     
    }
   })
</script>
</html>